import request from '@/utils/request'
/**
 * 医院列表
 */
 export const allList = (params, page, size) => {
    return request({
      url: `/opermgt/hospitalManage/search/${page}/${size}`,
      method: 'POST',
      data: params
    })
}
/**
 * 医院数据保存
 */
 export const ListSave = (params) => {
    return request({
      url: '/opermgt/hospitalManage',
      method: 'POST',
      data: params
    })
}
/**
 * 医院删除
 */
 export const ListDelet = (id) => {
    return request({
      url: `/opermgt/hospitalManage/${id}`,
      method: 'DELETE'
    })
}
/**
 * 单个医院
 */
 export const ListId = (id) => {
    return request({
      url: `/opermgt/hospitalManage/${id.id}`,
      method: 'GET',
    })
}
/**
 * 医院级别
 */
  export const ListLevel = () => {
    return request({
      url: '/opermgt/hospitalManage/selectHospitalLevel',
      method: 'GET',
    })
}
/**
 * 医院查询
 */
  export const ListSearch = (params) => {
    return request({
      url: '/opermgt/hospitalManage/search',
      method: 'POST',
      data: params
    })
}
